0568290df91a1a0a1a795d16900c46ac8a3de674,library/src/main/java/jahirfiquitiva/iconshowcase/adapters/LaunchersAdapter.java,LaunchersAdapter,onBindViewHolder,#LauncherHolder#number#,65
Before Change
Utils.getIconResId(context.getResources(), context.getPackageName(), "ic_na_launcher"))
.priority(Priority.IMMEDIATE)
.dontAnimate()
.into(holder.icon);
holder.launcherName.setText(launchers.get(position).name.toUpperCase(Locale.getDefault()));
After Change
final int textDark = ContextCompat.getColor(context, R.color.launcher_text_light);
final int textLight = ContextCompat.getColor(context, R.color.launcher_text_dark);
if (mPrefs != null && mPrefs.getAnimationsEnabled()) {
Glide.with(context)
.load(iconResource != 0 ?
iconResource :
Utils.getIconResId(context.getResources(), context.getPackageName(), "ic_na_launcher"))
.priority(Priority.IMMEDIATE)
.into(holder.icon);
} else {
Glide.with(context)
.load(iconResource != 0 ?
iconResource :
Utils.getIconResId(context.getResources(), context.getPackageName(), "ic_na_launcher"))
.priority(Priority.IMMEDIATE)
.dontAnimate()
.into(holder.icon);
}
holder.launcherName.setText(launchers.get(position).name.toUpperCase(Locale.getDefault()));